<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:80:"D:\phpstudy\WWW\jiarong\public/../application/admin\view\wechat\applet\edit.html";i:1527143546;s:66:"D:\phpstudy\WWW\jiarong\application\admin\view\layout\default.html";i:1523891109;s:63:"D:\phpstudy\WWW\jiarong\application\admin\view\common\meta.html";i:1523891109;s:65:"D:\phpstudy\WWW\jiarong\application\admin\view\common\script.html";i:1523891109;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="__CDN__/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="__CDN__/assets/js/html5shiv.js"></script>
  <script src="__CDN__/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#base" data-toggle="tab">基础</a></li>
                <li><a href="#merchant" data-toggle="tab">商户</a></li>
                <li><a href="#info" data-toggle="tab">信息</a></li>
            </ul>
        </div>

        <div class="panel-body">
            <div id="myTabContent" class="tab-content">

                <div class="tab-pane fade active in" id="base">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Appletid'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <p class="form-control-static"><?php echo $row['appletid']; ?></p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-name" class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="<?php echo $row['name']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-typedata" class="control-label col-xs-12 col-sm-2"><?php echo __('Typedata'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">

                            <div class="radio" id="c-typedata">
                            <?php if(is_array($typedataList) || $typedataList instanceof \think\Collection || $typedataList instanceof \think\Paginator): if( count($typedataList)==0 ) : echo "" ;else: foreach($typedataList as $key=>$vo): ?>
                            <label for="row[typedata]-<?php echo $key; ?>"><input id="row[typedata]-<?php echo $key; ?>" name="row[typedata]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['typedata'])?$row['typedata']:explode(',',$row['typedata']))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="c-is_follow" class="control-label col-xs-12 col-sm-2"><?php echo __('是否关注公众号后领取卡券'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">

                            <div class="radio" id="c-is_follow">
                                <?php if(is_array($followList) || $followList instanceof \think\Collection || $followList instanceof \think\Paginator): if( count($followList)==0 ) : echo "" ;else: foreach($followList as $key=>$vo): ?>
                                <label for="row[is_follow]-<?php echo $key; ?>"><input id="row[is_follow]-<?php echo $key; ?>" name="row[is_follow]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['is_follow'])?$row['is_follow']:explode(',',$row['is_follow']))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="c-token" class="control-label col-xs-12 col-sm-2"><?php echo __('Token'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-token" class="form-control" name="row[token]" type="text" value="<?php echo $row['token']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-appid" class="control-label col-xs-12 col-sm-2"><?php echo __('Appid'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-appid" data-rule="required" class="form-control" name="row[appid]" type="text" value="<?php echo $row['appid']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-appsecret" class="control-label col-xs-12 col-sm-2"><?php echo __('Appsecret'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-appsecret" data-rule="required" class="form-control" name="row[appsecret]" type="text" value="<?php echo $row['appsecret']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-aeskey" class="control-label col-xs-12 col-sm-2"><?php echo __('Aeskey'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-aeskey" class="form-control" name="row[aeskey]" type="text" value="<?php echo $row['aeskey']; ?>">
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <label for="c-notify_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Notify_url'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-notify_url" class="form-control" name="row[notify_url]" type="text">
                        </div>
                    </div>-->
                    <div class="form-group">
                        <label for="c-original" class="control-label col-xs-12 col-sm-2"><?php echo __('Original'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-original" class="form-control" name="row[original]" type="text" value="<?php echo $row['original']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-wechat" class="control-label col-xs-12 col-sm-2"><?php echo __('Wechat'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-wechat" class="form-control" name="row[wechat]" type="text" value="<?php echo $row['wechat']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-state" class="control-label col-xs-12 col-sm-2"><?php echo __('State'); ?>:</label>
                        <div class="col-xs-12 col-sm-8" id="c-state">

                            <div class="radio">
                                <?php if(is_array($stateList) || $stateList instanceof \think\Collection || $stateList instanceof \think\Paginator): if( count($stateList)==0 ) : echo "" ;else: foreach($stateList as $key=>$vo): ?>
                                <label for="row[state]-<?php echo $key; ?>"><input id="row[state]-<?php echo $key; ?>" name="row[state]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['state'])?$row['state']:explode(',',$row['state']))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>

                        </div>
                    </div>
                </div>

                <div class="tab-pane fade" id="merchant">
                    <div class="form-group">
                        <label for="c-mchid" class="control-label col-xs-12 col-sm-2"><?php echo __('Mchid'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-mchid" class="form-control" name="row[mchid]" type="text" value="<?php echo $row['mchid']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-mchkey" class="control-label col-xs-12 col-sm-2"><?php echo __('Mchkey'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-mchkey" class="form-control" name="row[mchkey]" type="text" value="<?php echo $row['mchkey']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-mch_api_cert" class="control-label col-xs-12 col-sm-2"><?php echo __('Mchcert'); ?></label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <span class="input-group-addon">apiclient_cert</span>
                                <input id="c-mch_api_cert" data-rule="" class="form-control" size="50" name="row[mch_api_cert]" type="text" value="<?php echo $row['mch_api_cert']; ?>">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-mch_api_cert" class="btn btn-danger plupload" data-input-id="c-mch_api_cert"
                                                  data-url="wechat/applet/upload"  data-mimetype="pem" data-multiple="false"><i class="fa fa-upload"></i> 上传</button></span>
                                </div>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-mchcert"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-mch_api_key" class="control-label col-xs-12 col-sm-2"><?php echo __('Mchcert'); ?></label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <span class="input-group-addon">apiclient_key</span>
                                <input id="c-mch_api_key" data-rule="applet/upload" class="form-control" size="50" name="row[mch_api_key]" type="text" value="<?php echo $row['mch_api_key']; ?>">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-mch_api_key" class="btn btn-danger plupload" data-input-id="c-mch_api_key"
                                                  data-url="wechat/applet/upload" data-mimetype="pem" data-multiple="false"><i class="fa fa-upload"></i> 上传</button></span>
                                </div>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-mch_api_key"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-mp_appid" class="control-label col-xs-12 col-sm-2"><?php echo __('Mp_appid'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-mp_appid" class="form-control" name="row[mp_appid]" type="text" value="<?php echo $row['mp_appid']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-mp_appsecret" class="control-label col-xs-12 col-sm-2"><?php echo __('Mp_appsecret'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-mp_appsecret" class="form-control" name="row[mp_appsecret]" type="text" value="<?php echo $row['mp_appsecret']; ?>">
                        </div>
                    </div>
                </div>

                <div class="tab-pane fade" id="info">
                    <div class="form-group">
                        <label for="c-principal" class="control-label col-xs-12 col-sm-2"><?php echo __('Principal'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-principal" class="form-control" name="row[principal]" type="text" value="<?php echo $row['principal']; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-headface_image" class="control-label col-xs-12 col-sm-2"><?php echo __('Headface_image'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-headface_image" class="form-control" size="50" name="row[headface_image]" type="text" value="<?php echo $row['headface_image']; ?>">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-headface_image" class="btn btn-danger plupload" data-input-id="c-headface_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-headface_image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                                    <span><button type="button" id="fachoose-headface_image" class="btn btn-primary fachoose" data-input-id="c-headface_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                                </div>
                                <span class="msg-box n-right" for="c-headface_image"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-headface_image"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-qrcode_image" class="control-label col-xs-12 col-sm-2"><?php echo __('Qrcode_image'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-qrcode_image" class="form-control" size="50" name="row[qrcode_image]" type="text" value="<?php echo $row['qrcode_image']; ?>">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-qrcode_image" class="btn btn-danger plupload" data-input-id="c-qrcode_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-qrcode_image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                                    <span><button type="button" id="fachoose-qrcode_image" class="btn btn-primary fachoose" data-input-id="c-qrcode_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                                </div>
                                <span class="msg-box n-right" for="c-qrcode_image"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-qrcode_image"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-city" class="control-label col-xs-12 col-sm-2"><?php echo __('City'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="<?php echo $row['city']; ?>"></div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="__CDN__/assets/js/require.js" data-main="__CDN__/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>